import React from 'react'
import { SearchBar } from 'antd-mobile'
import './index.css'

export default function Search(props) {
  // const [value, setValue] = useState()
  const { getValue } = props
  
  return (
    <>
      <div className='search'>
        <SearchBar className='search-bar' placeholder='请输入关键词' onSearch={(val)=>{
          getValue(val)
        }} />
      </div>
    </>
  )
}
